
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;


/**
 * 供应商sku规格值
 *
 * @author
 * @date 2024-11-06 10:10:47
 */
@Data
@TableName("supplier_goods_sku_spec_value")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "供应商sku规格值")
public class SupplierGoodsSkuSpecValue extends Model<SupplierGoodsSkuSpecValue> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * spu_id
     */
    @Schema(description = "spu_id")
    private String spuId;
    /**
     * sku_id
     */
    @NotNull(message = "sku_id不能为空")
    @Schema(description = "sku_id")
    private String skuId;
    /**
     * 规格值id
     */
    @NotNull(message = "规格值id不能为空")
    @Schema(description = "规格值id")
    private String specValueId;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private Integer sort;

    /**
     * 规格id
     */
    @Schema(description = "规格id")
    @TableField(exist = false)
    private String specId;
    /**
     * 规格值名
     */
    @Schema(description = "规格值名")
    @TableField(exist = false)
    private String specValueName;
}
